package notes.java.sjms23.t22_interpreter;
// 解释器模式
// 计算
public class Client {

	public static void main(String[] args) {
		
		// 9-2+3=?
		int result = new PlusExpression().interpret((new Context(new SubExpression().interpret(new Context(9, 2)), 3)));
		
		System.out.println(result);
	}
	
}
